﻿#region References
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

using WindowsLive.Writer.Api;
#endregion

namespace Autumoon.LiveWriterPlugin.Demo
{
    [WriterPlugin("7c371eef-e350-4aae-af28-91613a9137e3", "Autumoon", PublisherUrl = "http://www.Autumoon.com", Description = "This is an Autumoon Lab plugin.", Name = "Autumoon")]
    [InsertableContentSource("iAutumoon", SidebarText = "iAutumoon")]
    public class AutumoonPlugin : ContentSource
    {
        public override DialogResult CreateContent(IWin32Window dialogOwner, ref string content)
        {
            new ProcessForm().ShowDialog();

            content = ContentProcessor.ProcessedContent;

            return (!String.IsNullOrEmpty(content) ? DialogResult.OK : DialogResult.No);
        }
    }
}